home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / NCSA / tn3270 2.4d7 source / SPPC / makefile < prev    next >
Makefile  |  1991-05-28  |  2KB  |  72 lines

  1. # SPPCInit makefile
  2.  
  3. # control variables
  4.  
  5. ObjDir    = ":obj:"
  6. RscDir    = ":rsc:"
  7. COpts    = -r -b
  8. DumpOpts = -d USEDUMP
  9. AsmOpts    = 
  10. AllDepend = 
  11. # AllDepend = makefile
  12. DumpDepend = sppclib.h
  13. GlobalDepend =  {DumpDepend} sppcDumpFile 
  14. drvDumpDepend = drvlib.h
  15. drvGlobalDepend =  {drvDumpDepend} drvDumpFile 
  16.     
  17. # object code rules:
  18.     
  19. {ObjDir}sppcinit.c.o ƒ {AllDepend} {GlobalDepend} sppcinit.c 
  20.     C {COpts} {DumpOpts} sppcinit.c -o {ObjDir}sppcinit.c.o    
  21.  
  22. {ObjDir}driver.c.o ƒ {AllDepend} {drvGlobalDepend} driver.c sppcinterface.h 
  23.     C {COpts} {DumpOpts} driver.c -o {ObjDir}driver.c.o    
  24.  
  25. {ObjDir}showinit.a.o ƒ {AllDepend} ShowINIT.a 
  26.     Asm {AsmOpts} ShowINIT.a -o {ObjDir}showinit.a.o
  27.         
  28. # rules for creating resource files
  29.  
  30. {RscDir}icons ƒ {AllDepend} icons.r
  31.     Rez icons.r -o {RscDir}icons
  32.  
  33. # rules for creating dump files
  34.  
  35. sppcDumpFile ƒ makedump.c {DumpDepend}
  36.     Delete -i sppcDumpFile
  37.     C {COpts} makedump.c
  38.     Delete makedump.c.o
  39.  
  40. drvDumpFile ƒ drvdump.c {drvDumpDepend}
  41.     Delete -i drvDumpFile
  42.     C {COpts} drvdump.c
  43.     Delete drvdump.c.o
  44.  
  45. # rules for creating SPPCInit
  46.  
  47. SPPCInit ƒƒ {AllDepend} {ObjDir}sppcinit.c.o {ObjDir}showinit.a.o  ∂
  48.                        {RscDir}icons driver sppcinit.r version.r
  49.     Delete -i SPPCInit
  50.     Link -rt INIT=0 -t INIT -c 'SPPC'∂
  51.          -m sppcinit ∂
  52.          -sg SPPCInit ∂
  53.          {ObjDir}sppcinit.c.o {ObjDir}showinit.a.o ∂
  54.          -o SPPCInit -map -x sppcinit_xref -la > sppcinit.linkmap
  55.     Rez sppcinit.r -a -o SPPCInit 
  56.     SetFile -a B SPPCInit
  57.  
  58. # rules for creating driver
  59.  
  60. driver ƒƒ {AllDepend} {ObjDir}driver.c.o driver.r
  61.     Delete -i driver.DRVW
  62.     Delete -i driver
  63.     Link -rt DRVW=0 ∂
  64.          -sg driver ∂
  65.         "{Libraries}"DRVRRuntime.o ∂
  66.          {ObjDir}driver.c.o ∂
  67.         "{CLibraries}"StdClib.o ∂
  68.         "{Libraries}"Interface.o ∂
  69.          -o  driver.DRVW -map -x driver_xref -la > driver.linkmap
  70.     Rez driver.r -o driver 
  71.     Delete -i driver.DRVW
  72.